//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "TRecvThread.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------

//   Important: Methods and properties of objects in VCL can only be
//   used in a method called using Synchronize, for example:
//
//      Synchronize(&UpdateCaption);
//
//   where UpdateCaption could look like:
//
//      void __fastcall TRecvThread::UpdateCaption()
//      {
//        Form1->Caption = "Updated in a thread";
//      }
//---------------------------------------------------------------------------

__fastcall TRecvThread::TRecvThread(bool CreateSuspended,Client *client)
	: TThread(CreateSuspended)
{
	if(client)RecvClient=client;
}
//---------------------------------------------------------------------------
void __fastcall TRecvThread::Execute()
{
	RecvClient->connect(true);
}
//---------------------------------------------------------------------------
